<template>
	<view>
		<view class='user_list' v-for="(item,k) in userList" :key="k">
			<view class='user_item'>
				<image class='user_img' :src='item.avatarUrl'></image>
				<view class='user_item_right'>
					<view class='user_info'>
						<view class='user_info_up'>
							{{item.name?item.name:item.nickName}}
						</view>
						<view class='user_info_down'><text @click.stop="makeCall(item.phone)">{{item.phone}}</text>
						</view>
						<view class='user_info_down'>ID：{{item.openid}}</view>
						<view class="copy_btn" @click.stop="copy(item.openid)">复制</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				userList: [{
						avatarUrl: '../../static/temp/c1.png',
						nickName: "发大水发",
						openid: '46546dfs4',
						phone: '13545454545'
					},
					{
						avatarUrl: '../../static/temp/c2.png',
						nickName: "发大水发",
						openid: '46546dfs4',
						phone: '13545454545'
					},
					{
						avatarUrl: '../../static/temp/c3.png',
						nickName: "发大水发",
						openid: '46546dfs4',
						phone: '13545454545'
					},
					{
						avatarUrl: '../../static/temp/c4.png',
						nickName: "发大水发",
						openid: '46546dfs4',
						phone: '13545454545'
					}
				],
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	page {
		background: #f2f2f2;
	}

	.user_img {
		width: 120rpx;
		height: 120rpx;
		border-radius: 15rpx;
	}

	.user_list {
		padding: 25rpx;
	}

	.user_item {
		display: flex;
		justify-content: space-around;
		padding: 25rpx 0;
		letter-spacing: 2rpx;
		border: 1rpx #ddd solid;
		background: #fff;
		margin-bottom: 0rpx;
		border-radius: 15rpx;
		position: relative;
	}

	.user_item_right {
		display: flex;
		align-items: center;
		width: 65%;
	}

	.user_info {
		width: 75%;
	}

	.user_info_up {
		font-size: 30rpx;
		width: 445rpx;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.user_info_down {
		font-size: 28rpx;
		color: #555;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.user_opt {
		width: 35%;
	}

	.entry_btn {
		background: red;
		color: #fff;
		text-align: center;
		padding: 10rpx 0;
		border-radius: 35rpx;
		font-size: 35rpx;
		margin-top: 10rpx;
	}

	.order_status {
		font-size: 25rpx;
		color: red;
	}

	.copy_btn {
		position: absolute;
		right: 25rpx;
		bottom: 30rpx;
		border: 1rpx #1296db solid;
		border-radius: 6rpx;
		padding: 3rpx 8rpx;
		color: #1296db;
		font-size: 25rpx;
	}
</style>